package com.song.pojo;

/**
 * @Author 宋伟宁
 * @Date 2023/9/14
 * @Version 1.0
 **/
public class Car {

    private String color;
    private Power power;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Power getPower() {
        return power;
    }

    public void setPower(Power power) {
        this.power = power;
    }

    public void show(){
        System.out.println("汽车的颜色："+this.color+"排量是"+this.power.getSize());
    }
}
